import axios from '@/libs/request/axios'

export const addAffiliationInfo = (params) => {
    return axios.request({
        url: '/apply/applyUserChannel/addAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export const addNetCarAffiliationInfo = (params) => {
    return axios.request({
        url: '/apply/applyUserChannel/addNetCarAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export const upDateAffiliationInfo = (params) => {
    return axios.request({
        url: '/apply/applyUserChannel/upDateAffiliationInfo',
        data:params,
        method: 'post'
    })
};
export function saveBlack(obj) {
    return axios.request({
        url: '/apply/applyUserChannel/saveBlack',
        method: 'POST',
        data: obj
    })
};
export function checkBlack(obj) {
    return axios.request({
        url: '/apply/applyUserChannel/checkBlack',
        method: 'POST',
        data: obj
    })
};

export const getAffiliationInfoById = (param) => {
    return axios.request({
        url: '/apply/applyUserChannel/getAffiliationInfoById',
        method: 'post',
        data:param
    });
}
export const getAffiliationInfo = (param) => {
    return axios.request({
        url: '/apply/applyUserChannel/getAffiliationInfo',
        method: 'post',
        data:param
    });
}
// 通过渠道id查询授权区域信息
export const getMainAreaById = (params) => {
    return axios.request({
        url: '/apply/applyUserChannel/getMainAreaById',
        data: params,
        method: 'post'
    })
}
